package net.slidinglive.utilities.enumeration;

import net.slidinglive.utilities.R;
import android.content.Context;

/**
 * @author Sebastian Hoffmann <bo.hoffi@gmail.com>
 */
public enum MessageBackupType {

    JSON, XML;

    /**
     * @return the caption
     */
    public String getCaption(final Context context) {

        String caption = "";

        switch (this) {
            case JSON:
                caption = context.getResources().getString(R.string.message_backup_type_choice_json);
                break;

            case XML:
                caption = context.getResources().getString(R.string.message_backup_type_choice_xml);
                break;

            default:
                caption = context.getResources().getString(R.string.message_backup_type_choice_json);
                break;
        }
        return caption;
    }
}